BlePeriph.WriteCharacteristic
This command changes the value of a characteristic. All future reads from the Central or BlePeriph.ReadCharacteristic from the BRP host will return the new value.
If the Central has registered a notification/indication for this characteristic, the reader will automatically send a corresponding message to the Central.
A characteristic can only be written when BLE is enabled.
Properties
- Command code: 0x4B04
- Command timeout: 1000 ms
- Possible status codes: General status codes, BlePeriph.ErrNotEnabled, BlePeriph.ErrInvalidCharacteristicNdx, BlePeriph.ErrWriteCharacteristic
Parameters (request frame)
Name | Type/Size | Description |
---|---|---|
CharacteristicNdx | Integer (8 bits) | The index of the characteristic to modify in the Characteristics array passed to BlePeriph.DefineService, starting with 0 |
Length of WriteValue | Integer (16 bits) |
Length of WriteValue in bytes |
WriteValue | Raw data | - |
Returned values (response frame)
None